import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk';
import rootReducers from './rootReducers';
import ReactReduxUtils from "../utils/ReactReduxUtils.js";
const store = createStore(rootReducers, applyMiddleware(thunk));
window.M.reduxGetState= store.getState;
window.M.reduxSetState= ReactReduxUtils.action(store.dispatch).setState;
export default store;